<div class="listBox">
  <table class="tbl">
    <tr>
      <th width="10%" colspan="3" rowspan="3">キャラ名</th>
      <th width="5%" colspan="2" rowspan="2">種族</th>
      <th width="5%"  colspan="2" rowspan="2">所属</th>
      <th width="10%" width="10%" colspan="2" rowspan="2">ジョブ</th>
      <th width="3%">戦</th>
      <th width="3%">モ</th>
      <th width="3%">白</th>
      <th width="3%">黒</th>
      <th width="3%">赤</th>
      <th width="3%">シ</th>
      <th width="3%">ナ</th>
      <th width="3%">暗</th>
      <th width="3%">狩</th>
      <th width="3%">吟</th>
      <th width="3%">獣</th>
      <th width="3%">竜</th>
      <th width="3%">召</th>
      <th width="3%">忍</th>
      <th width="3%">侍</th>
      <th width="3%">青</th>
      <th width="3%">コ</th>
      <th width="3%">か</th>
      <th width="3%">踊</th>
      <th width="3%">学</th>
      <th width="10%" colspan="3" rowspan="3">更新日時</th>
    </tr>
    <tr>
      <th width="3%">鍛</th>
      <th width="3%">織</th>
      <th width="3%">錬</th>
      <th width="3%">木</th>
      <th width="3%">彫</th>
      <th width="3%">革</th>
      <th width="3%">骨</th>
      <th width="3%">調</th>
      <th width="3%">釣</th>
      <th width="3%">成</th>
     <th colspan="10"></th>
    </tr>
    <tr>
      <th colspan="26">コメント</th>
    </tr>
    <tr>
      <td colspan="3" rowspan="3"><a href="/default/personal/id/<?php echo $personal_data->getId();?>"><?php echo $personal_data->getName();?></a></td>
      <td colspan="2" rowspan="2"><?php echo image_tag($personal_data->getRace()."/".$personal_data->getface());?></td>
      <td colspan="2" rowspan="2"><?php echo image_tag("country/".$personal_data->getCountry());?></td>
      <td colspan="2" rowspan="2"><?php echo $arr_job[$personal_data->getMainJob()];?>/<?php echo $arr_job[$personal_data->getSuportJob()];?></td>
      <?php $job = $personal_data->getJobs();?>
      <td><?php echo ($job->getWar() != NULL)?$job->getWar():"&nbsp;";?></td>
      <td><?php echo ($job->getMnk() != NUll)?$job->getMnk():"&nbsp;";?></td>
      <td><?php echo ($job->getWhm() != NULL)?$job->getWhm():"&nbsp;";?></td>
      <td><?php echo ($job->getBlm() != NULL)?$job->getBlm():"&nbsp;";?></td>
      <td><?php echo ($job->getRdm() != NULL)?$job->getRdm():"&nbsp;";?></td>
      <td><?php echo ($job->getThf() != NULL)?$job->getThf():"&nbsp;";?></td>
      <td><?php echo ($job->getPld() != NULL)?$job->getPld():"&nbsp;";?></td>
      <td><?php echo ($job->getDrk() != NULL)?$job->getDrk():"&nbsp;";?></td>
      <td><?php echo ($job->getRng() != NULL)?$job->getRng():"&nbsp;";?></td>
      <td><?php echo ($job->getBrd() != NULL)?$job->getBrd():"&nbsp;";?></td>
      <td><?php echo ($job->getBst() != NULL)?$job->getBst():"&nbsp;";?></td>
      <td><?php echo ($job->getDrg() != NULL)?$job->getDrg():"&nbsp;";?></td>
      <td><?php echo ($job->getSmn() != NULL)?$job->getSmn():"&nbsp;";?></td>
      <td><?php echo ($job->getNin() != NULL)?$job->getNin():"&nbsp;";?></td>
      <td><?php echo ($job->getSam() != NULL)?$job->getSam():"&nbsp;";?></td>
      <td><?php echo ($job->getBlu() != NULL)?$job->getBlu():"&nbsp;";?></td>
      <td><?php echo ($job->getCor() != NULL)?$job->getCor():"&nbsp;";?></td>
      <td><?php echo ($job->getPup() != NULL)?$job->getPup():"&nbsp;";?></td>
      <td><?php echo ($job->getDnc() != NULL)?$job->getDnc():"&nbsp;";?></td>
      <td><?php echo ($job->getSch() != NULL)?$job->getSch():"&nbsp;";?></td>
      <td colspan="3" rowspan="3"><?php echo $personal_data->getUpdateAt()?></td>
    </tr>
    <tr>
      <?php $synthsis = $personal_data->getSynthesises();?>
      <td><?php echo ($synthsis->getSmithing() != NULL)?$synthsis->getSmithing():"&nbsp;";?></td>
      <td><?php echo ($synthsis->getClothcraft() != NULL)?$synthsis->getClothcraft():"&nbsp;";?></td>
      <td><?php echo ($synthsis->getAlchemy() != NULL)?$synthsis->getAlchemy():"&nbsp;";?></td>
      <td><?php echo ($synthsis->getWoodworking() != NULL)?$synthsis->getWoodworking():"&nbsp;";?></td>
      <td><?php echo ($synthsis->getGoldsmithing() != NULL)?$synthsis->getGoldsmithing():"&nbsp;";?></td>
      <td><?php echo ($synthsis->getLethercraft() != NULL)?$synthsis->getLethercraft():"&nbsp;";?></td>
      <td><?php echo ($synthsis->getBorncraft() != NULL)?$synthsis->getBorncraft():"&nbsp;";?></td>
      <td><?php echo ($synthsis->getFishing() != NULL)?$synthsis->getFishing():"&nbsp;";?></td>
      <td><?php echo ($synthsis->getCooking() != NULL)?$synthsis->getCooking():"&nbsp;";?></td>
      <td><?php echo ($synthsis->getSynergy() != NULL)?$synthsis->getSynergy():"&nbsp;";?></td>
      <td colspan="10"></td>
    </tr>
    <tr>
      <td colspan="26"><?php echo $personal_data->getComment();?></td>
    </tr>
  </table>
</div>
<div class="listBox">
  <table class="tbl">
    <?php foreach($arr_content_id as $value):?>
      <?php $th = $value->getTh($value->getId());?>
      <?php $data = $value->getDat($value->getId(), $member_id);?>
      <?php $dat = $data[0];?>
        <tr>
          <?php foreach($th as $value):?>
            <th><?php echo ($value != "")?$arr_content[$value]:"&nbsp";?></th>
          <?php endforeach;?>
        </tr>
        <tr>
          <?php foreach($dat as $value):?>
            <td><?php echo ($value != "")?$arr_content[$value]:"&nbsp";?></td>
          <?php endforeach;?>
        </tr>
    <?php endforeach;?>
  </table>
</div>
